<?php

/**
 * news actions.
 *
 * @package    sf.shonanbbs.com
 * @subpackage news
 * @author     Your name here
 * @version    SVN: $Id: actions.class.php 2692 2006-11-15 21:03:55Z fabien $
 */
class newsActions extends sfActions
{
  /**
   * Executes index action
   *
   */
  public function executeIndex()
  {
    $c = new Criteria;//()有り無しどちらでも可

    $c->add(NewsPeer::DELETE_FLG,"y",Criteria::NOT_EQUAL);//delete_flgがyではないレコードを出力する
    $c->addDescendingOrderByColumn(newsPeer::CREATED_AT);//投稿時間を降順で出力する
    $this->news_arr = NewsPeer::doSelect($c);






    return sfView::SUCCESS;
  }
}
